﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Tools.Dialog
{
    public partial class FormShowOk : Form
    {
        public FormShowOk()
        {
            InitializeComponent();
        }


        public void SetColorAndText(int number,string text,Color col)
        {
            switch (number)
            {
                case 1:
                    label1.Text = text;
                    label1.BackColor = col;
                    break;
                case 2:
                    label2.Text = text;
                    label2.BackColor = col;
                    break;

                case 3:
                    label3.Text = text;
                    label3.BackColor = col;
                    break;
                case 4:
                    label4.Text = text;
                    label4.BackColor = col;
                    break;
                case 5:
                    label5.Text = text;
                    label5.BackColor = col;
                    break;
                case 6:
                    label6.Text = text;
                    label6.BackColor = col;
                    break;
                case 7:
                    label7.Text = text;
                    label7.BackColor = col;
                    break;
                case 8:
                    label8.Text = text;
                    label8.BackColor = col;
                    break;
                case 9:
                    label9.Text = text;
                    label9.BackColor = col;
                    break;
                case 10:
                    label10.Text = text;
                    label10.BackColor = col;
                    break;
                case 11:
                    label11.Text = text;
                    label11.BackColor = col;
                    break;
                case 12:
                    label12.Text = text;
                    label12.BackColor = col;
                    break;
                case 13:
                    label13.Text = text;
                    label13.BackColor = col;
                    break;
                case 14:
                    label14.Text = text;
                    label14.BackColor = col;
                    break;
                case 15:
                    label15.Text = text;
                    label15.BackColor = col;
                    break;
                case 16:
                    label16.Text = text;
                    label16.BackColor = col;
                    break;
            }
        }
    }
}
